package com.ocom.payhandle.feign;

import com.ocom.common.constant.MqSimpleApiUrl;
import com.ocom.common.entity.card.EntityXfAccountInfo;
import com.ocom.common.request.simple.GzhMsgRequest;
import com.ocom.common.request.simple.SmsRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "mq-simple")
public interface MqSimpleFeign {

    // 初始化账号(addXFAccount)
    @PostMapping(MqSimpleApiUrl.URL_AddXFAccount)
    public Result AddXFAccount(@RequestBody EntityXfAccountInfo entityXfAccountInfo);

    @PostMapping(MqSimpleApiUrl.URL_FySms)
    public Result FySms(@RequestBody SmsRequest request);

    @PostMapping(MqSimpleApiUrl.URL_gzhMsg)
    public Result gzhMsg(@RequestBody GzhMsgRequest request);
}
